import os
fs = os.listdir('files')

for f in fs:
	if f.find('.bin') != -1:

		fn = os.path.join("files", f)
		print "file", fn
		os.system('python binCutFile.py %s' % (fn))